/*
 * Copyright 2023-2085 xujin <ceo@itgrail.com>
 *
 * Licensed under the Grail License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * https://itgrail.com/docs?id=3&catalogId=87
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.itgrail.pilot.infrastructure.tunnel.db.dataobject;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;
import java.util.Date;

import static com.baomidou.mybatisplus.annotation.IdType.AUTO;


@TableName("t_okr_period")
@Data
public class OkrPeriodDO {

    /**
     * 主键
     */
    @TableId(value = "id", type = AUTO)
    private Integer id;

    /**
     * 周期长度
     */
    @TableField(value = "period_length")
    private Byte periodLength;

    /**
     * 周期类型 默认为月  0月 1季度 2年
     */
    @TableField(value = "period_type")
    private Byte periodType;

    /**
     * 生效日期
     */
    @TableField(value = "start_date")
    private String startDate;

    @TableField(value = "name")
    private String name;

    /**
     * 是否开启年度okr  默认0开启  1关闭
     */
    @TableField(value = "year_enable")
    private Byte yearEnable;

    /**
     * 是否开启 1关闭 0启用
     */
    @TableField(value = "show_enable")
    private Byte showEnable;

    /**
     * 记录创建时间，默认当前时间
     */
    @TableField(value = "create_time")
    private Timestamp createTime;

    /**
     * 记录更新时间，默认当前时间
     */
    @TableField(value = "update_time")
    private Timestamp updateTime;

    /**
     * 是否删除 0 未删除 1 删除 默认是0
     */
    @TableField(value = "deleted")
    private Byte deleted;

    /**
     * 创建人
     */
    @TableField(value = "created")
    private Integer created;

    /**
     * 更新人
     */
    @TableField(value = "updated")
    private Integer updated;

    /**
     * 默认可以编辑Objective KeyResult 0编辑所有 1只允许编辑评分 2都不可编辑
     */
    @TableField(value = "is_edit")
    private Byte isEdit;

    @TableField(value = "my_comment_enable")
    private Byte myCommentEnable;

    @TableField(value = "leader_comment_enable")
    private Byte leaderCommentEnable;

    @TableField(value = "all_comment_enable")
    private Byte allCommentEnable;

    @TableField(value = "start_time")
    private Date startTime;

    @TableField(value = "end_time")
    private Date endTime;

    @TableField(value = "classify_key")
    private String classifyKey;

    @TableField(value = "ext_info")
    private String extInfo;

}
